package com.whj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whj.domain.entity.Menu;
import com.whj.domain.vo.AddMenuVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 菜单权限表(Menu)表数据库访问层
 *
 * @author wanghaijun
 * @since 2023-05-30 14:46:27
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    List<String> selectPermsByUserId(@Param("userId") Long userId);

    List<Menu> selectAllRouterMenu();

    List<Menu> selectRouterMenuTreeByUserId(Long userId);

    List<AddMenuVO> selectListAll();

    List<String> selectMenuIdById(@Param("id") Long id);
}
